<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script>
		var a=10;
		var b=a;

		b=20;
		console.log(a);

		var p = {
			age:20
		}
		var c=p;//xf001
		c.age = 30;

		console.log(p.age);

		function temp() {
			alert(111);
		}

		var d = temp;
		d();//函数可以被赋值给一个变量


		function add(a,b) {
			a+=20;//107+13
			alert(a+b);
		}

		add(100,88); //方法参数的赋值就像变量的赋值一样

		var e = 200;


		function suibian(a,b,cb) {

			function dapaidang(aaa) {
				return aaa;
			}

			function haha(cb) {
				return cb;
			}
			haha(dapaidang(cb))(a,b);
			
		}
		suibian(87,13,add) ;




		// 家里房子搞装修

	</script>
</body>
</html>